package com.zhihuixingguang;

import com.zhihuixingguang.login.CreateLoginUrlRes;
import com.zhihuixingguang.login.LoginConfig;
import com.zhihuixingguang.login.LoginService;
import com.zhihuixingguang.login.LoginServiceImpl;
import com.zhihuixingguang.util.JSONUtil;

public class Test {

	public static void main(String[] args) {
		/**
		 * openid：hV52VWqKgZwIaPwt appid：nzT7XmGAVQKt88us appsecret：igPxotNc6SKNCAFz
		 * systemid：YQMS
		 */
		LoginConfig c = new LoginConfig("nzT7XmGAVQKt88us","igPxotNc6SKNCAFz","YQMS",null);

		LoginService l = new LoginServiceImpl(c);
		CreateLoginUrlRes r = l.createLoginUrl("123456789");
		System.out.println(JSONUtil.toJSONString(r, true));
	}
}
